package Towers;


public class GerenciadorDeTorres {
	
	
	public final int MADEIRA = 1;
	public final int PEDRA = 2;
	public final int METAL = 3;
	
	
	private final int  torre0 = 201000000; // ok 1
	private final int  torre1 = 301000000; //  ok 2
	private final int  torre2  =321000000;// ok 3
	private final int  torre3 = 321010010;// ok 4
	private final int  torre4 = 222111030;// 0k 5
	private final int  torre5 = 303222101;// ok 6
	private final int  torre6 = 333202111; // ok 7
	private final int  torre7 = 333212111;// ok 8
//	private final int  torre8 = 333232111;// ok 9
	private final int  torre8 = 333222111;// ok 10
	private final int  torre9 = 10010010;// ok 11
	private final int  torre10 = 20020020;// ok 12
	private final int  torre11 = 30030030;// ok 13
	
	
	
	public GerenciadorDeTorres() {
		
	}
	
	
	
	public int testaTorre(int valor){
		int opcao=-1;
		switch(valor){
		case torre0:
			//System.out.println("torre 1");
			opcao =  1;
			break;
		case torre1:
			//System.out.println("torre 2");
			opcao = 2;
			break;
		case torre2:
//			System.out.println("torre 3");
			opcao = 3;
			break;
		case torre3:
//			System.out.println("torre 4");
			opcao = 4;
			break;
		case torre4:
//			System.out.println("torre 5");
			opcao  = 5;
			break;
		case torre5:
//			System.out.println("torre 6");
			opcao  = 6;
			break;
		case torre6:
//			System.out.println("torre 7");
			opcao  = 7;
			break;
		case torre7:
//			System.out.println("torre 8");
			opcao  = 8;
			break;
		case torre8:
//			System.out.println("torre 9");
			opcao  = 9;
			break;
		case torre9:
//			System.out.println("torre 10");
			opcao  = 10;
			break;
		case torre10:
//			System.out.println("torre 11");
			opcao  = 11;
			break;
		case torre11:
//			System.out.println("torre 12");
			opcao  = 12;
			break;
//		case torre12:
//			opcao  = 13;
//			break;
			
		}
		return opcao;
		
		
		
	}
	
	
	
	
	
}
	
	


